using System;
using System.ComponentModel;
using System.ComponentModel.Composition;
using System.Windows;
using System.Windows.Controls;
using Cinch;
using LanSunStudio.Base.Controls;
using LanSunStudio.Core.Events;
using LanSunStudio.Controls;
using LanSunStudio.LocalizationLibrary;
namespace LanSunStudio.GUI
{
    /// <summary>
    ////* 2013/7/1 17:44:03*/ 
    /// Interaction logic for EditGTDEF.xaml
    /// </summary>
     [ViewnameToViewLookupKeyMetadata("DATAGTDEF", typeof(DATAGTDEF))]
    public partial class DATAGTDEF : ExDATA
    {  
        [Import("GTDEFLocalizationModel", typeof(ILocalizationModel))]
        public override ILocalizationModel LocalizationModel
        {
            get { return base.LocalizationModel; }
            set { base.LocalizationModel = value; }
        }    
        public DATAGTDEF()
        {
            InitializeComponent(); 
            if (DesignerProperties.GetIsInDesignMode(this as DependencyObject))
              {
                  return;
              }
            Address = " DATAGTDEF" + "#" + Guid.NewGuid().ToString().ToUpper();              
            BaseTable ="GTDEF";  
        } 
        public override void DATAPopUpMenu_Loaded(object sender, RoutedEventArgs e)
        {
            base.DATAPopUpMenu_Loaded(sender, e);
            PopUpMenuTextBox pop = sender as LanSunStudio.Controls.PopUpMenuTextBox;
        }        
        public override void ExUserControl_Loaded(object sender, RoutedEventArgs e)
        {
            base.ExUserControl_Loaded(sender, e);
            try
            {
                if (NMICD != null)
                {
                    NMICD.CMDEXE.TextChanged += new TextChangedEventHandler(CMDEXE_TextChanged);
                } 
            }
            catch (Exception ex)
            {
                Tracer.Error(ex.StackTrace, ex);
            }
        }
    }
} 
 
